#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QWidget>
#include <QPushButton>
#include <QFont>
#include <QVBoxLayout>
#include <QLabel>
#include "chessboard.h"

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT
signals:
    void cellClicked(int row, int col);

public slots:
    void handleCellClicked(int oldRow, int oldCol, int row, int col);

    void handleStart();

    void handleRestart();

    void handleRepentance();

    void whereShow();

public:
    explicit MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private:
    QLabel *redLabel;

    QLabel *blackLabel;

private:
    Ui::MainWindow *ui;
    ChessBoard * m_chessBoard;
};

#endif // MAINWINDOW_H
